package com.jic.market.enums;

/**
 * 条件类活动互斥组
 * @author yinhaijun
 * @date: 2020/5/7
 */
public enum  MutuallyExclusiveTypeConditionEnum {

    PLATFORM_COUPON_AMOUNT(1, "第二组，组内仅仅自身互斥"),
    STORE_COUPON_AMOUNT(3, "第三组，组内全部互斥"),
    ;
    private Integer code;
    private String message;

    MutuallyExclusiveTypeConditionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static MutuallyExclusiveTypeConditionEnum getByCode(Integer code) {
        MutuallyExclusiveTypeConditionEnum[] values = MutuallyExclusiveTypeConditionEnum.values();
        for (MutuallyExclusiveTypeConditionEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
